let $ = layui.jquery;
let jQuery=$;
let SettingData = {};//配置文件参数
let SeleteData = {};//筛选参数
let current =1;
let raw = '';//排序
let InitData={};
let table_config = {
    "header": {
        "button": [],
        "tab": [],
        "search": {
            "datetime": [],
            "like": "表名|应用名称|控制器名称|方法名称|删除者IP"
        },
        "sum": []
    },
    "left": {
        "status": 2,
        "title": null,
        "options_id": null,
        "key_field": "value",
        "show_field": "label",
        "field": null,
        "type": 1,
        "url": {
            "title": "",
            "list": "/common/options/leftlists/?num=",
            "add": "",
            "edit": "",
            "delete": "",
            "width": "",
            "height": ""
        }
    },
    "source": "delete_type,yesno",
    "table": {
        "button": [
            {
                "title": "删除",
                "icon": "icon-ashbin",
                "btn_class": "btn_theme_2",
                "is_drop": 2,
                "type": "ajax",
                "url": "/admin/recycle/delete/?id={id}",
                "where": null,
                "width": 0,
                "height": 0,
                "node": "admin:recycle:delete"
            },
            {
                "title": "查看",
                "icon": "icon-browse",
                "btn_class": "btn_theme_0",
                "is_drop": 2,
                "type": "window",
                "url": "/admin/recycle/detail/?id={d.id}",
                "where": null,
                "width": 0,
                "height": 0,
                "node": "admin:recycle:detail"
            },
            {
                "title": "恢复",
                "icon": "icon-jubao",
                "btn_class": "btn_theme_3",
                "is_drop": 2,
                "type": "ajax",
                "url": "/admin/recycle/restore/?id={id}",
                "where": "d.is_status=2",
                "width": 0,
                "height": 0,
                "node": "admin:recycle:restore"
            }
        ],
        "style": 1,
        "parent_id": "parent_id",
        "parent_name": "title",
        "limit": 30,
        "tab_sum": "",
        "page": true,
        "elem": "datatable",
        "height": "full-85",
        "update": "/admin/recycle/update_field/",
        "url": "/admin/recycle/index/",
        "cols": [
            {
                "id": "1713774183_23_1",
                "field": "table_name",
                "title": "表名"
            },
            {
                "id": "1722859069_20_8",
                "field": "app",
                "title": "应用名称"
            },
            {
                "id": "1722859069_20_9",
                "field": "controller",
                "title": "控制器名称"
            },
            {
                "id": "1722866930_20_9",
                "field": "action",
                "title": "方法名称"
            },
            {
                "id": "1713774187_23_4",
                "field": "delete_ip",
                "title": "删除者IP"
            },
            {
                "id": "1722858580_20_7",
                "field": "delete_id",
                "title": "删除ID",
                "width": "180",
                "minWidth": "180"
            },
            {
                "id": "1722858583_20_9",
                "field": "delete_type",
                "title": "删除方式",
                "search": "select",
                "options": "delete_type"
            },
            {
                "id": "1722858590_20_10",
                "field": "is_status",
                "title": "是否恢复",
                "search": "select",
                "options": "yesno"
            },
            {
                "id": "1713774192_23_6",
                "field": "create_id",
                "title": "操作人"
            },
            {
                "id": "1713774190_23_5",
                "field": "create_time",
                "title": "删除时间",
                "width": 160,
                "minWidth": 160
            }
        ]
    }
};
let form_config = {
    detail:'/admin/recycle/detail/',
    add:'/admin/recycle/add/',
    edit:'/admin/recycle/edit/',
    data:{
    "table_name": "",
    "app": "",
    "controller": "",
    "action": "",
    "delete_ip": "",
    "delete_id": "",
    "delete_type": "",
    "delete_data": ""
},
    label_width:'',
    form_label:'form_right',
    onclick:[],
};
